//
//  UserInfo.h
//  Baymax
//
//  Created by jolin on 16/4/20.
//  Copyright © 2016年 jolin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserInfo : NSObject

@property (nonatomic, copy) NSString *username;//用户名
@property (nonatomic, copy) NSString *nickname;//昵称
@property (nonatomic, copy) NSString *password;//密码
@property (nonatomic, copy) NSString *email;//邮箱
@property (nonatomic, copy) NSString *sex;//性别
@property (nonatomic, copy) NSString *phone;//电话
@property (nonatomic, copy) NSString *photo_base64;//修改、上传头像的base64
@property (nonatomic, copy) NSString *photo;//头像
@property (nonatomic, assign) BOOL allow_add_friend;//是否可加好友
@property (nonatomic, copy) NSString *links_self;
@property (nonatomic, copy) NSString *token;//通行证

/**
 *  初始化方法
 *
 *  @param dic 用户信息
 *
 *  @return userinfo
 */
- (instancetype)initWithDic:(NSDictionary *)dic;
+ (instancetype)userInfoWithDic:(NSDictionary *)dic;

@end
